package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.ElderlyFamilyRelation;
import com.zzyl.nursing.vo.ElderFamilyMyVo;
import com.zzyl.nursing.vo.ElderlyFamilyRelationVo;
import com.zzyl.nursing.vo.HealthDayVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 小程序用户端数据层
 *
 * @Author myl
 * @Date 2025/8/5 18:07
 */
@Mapper
public interface MemUserMapper extends BaseMapper<ElderlyFamilyRelation> {

    /**
     * 查询家人列表
     * @return
     */
    List<ElderlyFamilyRelationVo> list(Long userId);

    /**
     * 查看家人列表
     * @return
     */
    List<ElderFamilyMyVo> listALl();

    /**
     * 按天查询健康数据

     * @param functionId
     * @param iotId
     * @return
     */
    List<HealthDayVo> selectDataValue(@Param("startTime1") LocalDateTime startTime1,
                                      @Param("endTime1") LocalDateTime endTime1,
                                      @Param("functionId") String functionId,
                                      @Param("iotId") String iotId);
}
